package com.hm;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

import com.hm.filter.AccessFilter;

/**
 * @author shishun.wang
 * @date 2016年11月3日 上午12:50:16
 * @version 1.0
 * @describe
 */
// @SpringCloudApplication等价于@SpringBootApplication、@EnableDiscoveryClient、@EnableCircuitBreak
@EnableZuulProxy
@SpringCloudApplication
public class ZuulApplication {

	@Bean
	public AccessFilter accessFilter() {
		return new AccessFilter();
	}
	
	public static void main(String[] args) {
		SpringApplication.run(ZuulApplication.class, args);
	}
}
